package com.example.elm_server_api.mapper;

import com.example.elm_server_api.domain.Role;
import com.example.elm_server_api.domain.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity com.lanqiao.securityjwt.domain.SysUser
 */
public interface SysUserMapper {

    List<SysUser> selectAll();

    SysUser findByUsername(String username);

    SysUser selectByPrimaryKey(Long id);

    int insert(SysUser record);

    int insertRoleToUser(@Param("sysUser") SysUser sysUser,
                         @Param("role") Role role);


}
